package com.ccod.nacos.provider.facade;

import com.ccod.nacos.provider.facade.drm.DynamicConfig;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@EnableDubbo
@MapperScan("com.ccod.nacos.provider.facade.mapper")
public class NacosOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosOrderApplication.class, args);
    }

    @Autowired
    private DynamicConfig dynamicConfig;

    @GetMapping("hello")
    private String cc(){
        return dynamicConfig.toString();
    }

}
